package com.goods.business.service;

import com.goods.common.error.SystemException;
import com.goods.common.model.business.ProductCategory;
import com.goods.common.vo.business.ProductCategoryTreeNodeVO;
import com.goods.common.vo.business.ProductCategoryVO;
import com.goods.common.vo.system.PageVO;

import java.util.List;

/**
 * description:
 * create by sxy 2021/6/7
 */
public interface ProductCategoryService {
    PageVO<ProductCategoryTreeNodeVO> categoryTree(Integer pageNum, Integer pageSize);

    List<ProductCategoryTreeNodeVO> getParentCategoryTree();

    void add(ProductCategoryVO productCategoryVO) throws SystemException;

    ProductCategoryVO edit(Long id);

    void update(Long id, ProductCategory productCategory) throws SystemException;

    //删除分类
    void delete(Long id) throws SystemException;
}
